import request from '@/utils/request'

// 获取志愿者服务统计
export function getVolunteerStatistics(volunteerId) {
  return request({
    url: `/activity/statistics/volunteer/${volunteerId}`,
    method: 'get'
  })
}

// 获取活动服务统计
export function getActivityStatistics(activityId) {
  return request({
    url: `/activity/statistics/activity/${activityId}`,
    method: 'get'
  })
}

// 获取时间段内的服务统计
export function getDateRangeStatistics(params) {
  return request({
    url: '/activity/statistics/date-range',
    method: 'get',
    params
  })
}

// 获取志愿者服务排行榜
export function getVolunteerRanking(params) {
  return request({
    url: '/activity/statistics/ranking',
    method: 'get',
    params
  })
}

// 获取活动参与情况分析
export function getActivityParticipation(activityId) {
  return request({
    url: `/activity/statistics/participation/${activityId}`,
    method: 'get'
  })
}

// 获取服务类型分布统计
export function getServiceTypeDistribution() {
  return request({
    url: '/activity/statistics/service-type',
    method: 'get'
  })
} 